package com.company;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author Administrator
 */
public class HJ4字符串分隔 {
    public static void main(String[] args) throws IOException {
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        String str;
        while ((str = bf.readLine()) != null) {
            int length = str.length();
            int start  =0;
            while (length >= 8) {
                System.out.println(str.substring(start, 8 +start));
                start += 8;
                length -=8;
            }

            if (length > 0) {
                String append = null;
                StringBuffer stringBuffer = new StringBuffer(str.substring(start, str.length()));
                for (int i = length; i < 8; i++) {
                    append =String.valueOf( stringBuffer.append(0));
                }
                System.out.println(append);
            }
        }
    }
}
